import request from '@/router/axios';


// 获取课程大纲列表
export const getOutlineList = (current, size, params) => {
  return request({
    url: '/api/ManageCourseSet/GetCourseOutlineList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

// 添加或修改课程大纲
export const eidtOraddlistOutline = (params) => {
  return request({
    url: '/api/ManageCourseSet/AddOrEditCourseOutline',
    method: 'post',
    data: params
  })
}
// 修改大纲状态
export const editOutlineStatus = (params) => {
  return request({
    url: '/api/ManageCourseSet/EditCourseOutlineState',
    method: 'post',
    data: params
  })
}
// 删除大纲
export const deleteOutline = (params) => {
  return request({
    url: '/api/ManageCourseSet/DelCourseOutline',
    method: 'post',
    data: params
  })
}




// 获取学习资料列表
export const getStudyList = (current, size, params) => {
  return request({
    url: '/api/ManageCourseSet/GetLearningMaterialList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
// 添加或修改学习资料
export const eidtOraddStudyList = (params) => {
  return request({
    url: '/api/ManageCourseSet/AddOrEditLearningMaterial',
    method: 'post',
    data: params
  })
}
// 修改资料状态
export const editStudyStatus = (params) => {
  return request({
    url: '/api/ManageCourseSet/EditLearningMaterialState',
    method: 'post',
    data: params
  })
}
// 删除资料
export const deleteStudy = (params) => {
  return request({
    url: '/api/ManageCourseSet/DelLearningMaterial',
    method: 'post',
    data: params
  })
}
